# -*- coding: utf-8 -*-

# Scrapy settings for maoyanmovie project

BOT_NAME = 'maoyanmovie'

SPIDER_MODULES = ['maoyanmovie.spiders']
NEWSPIDER_MODULE = 'maoyanmovie.spiders'

ITEM_PIPELINES = {
    'maoyanmovie.pipelines.MaoyanmoviePipeline':300,
    #'maoyanmovie.pipelines.MysqlPipeline':400,
}

LOG_LEVEL = 'INFO'

#start MySQL database configure setting
MYSQL_HOST = 'localhost'
MYSQL_DBNAME = 'maoyandb'
MYSQL_USER = 'root'
MYSQL_PASSWD = 'snoopy'

ROBOTSTXT_OBEY = True

